
package sport.media;

import com.nokia.mid.sound.Sound;
import java.io.IOException;
import java.io.InputStream;

public class NokiaUISampledBell implements IBell {
Sound s = null;
byte[] data ;
InputStream is;
    public NokiaUISampledBell() {
        is = getClass().getResourceAsStream("/1b.mp3");
        try {
            is.read(data, 0, is.available());
        } catch (IOException ex) {
            ex.printStackTrace();
        }
        s = new Sound(data,Sound.FORMAT_WAV);
    }



    public void ringsStart() {
        s.play(1);
    }

    public void ringsRest() {
        s.play(1);
    }

    public void ringsEnd() {
	s.play(2);
    }

}
